package com.rzjm.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 水卡打水记录对象 device_water_record
 *
 * @author ruoyi
 * @date 2025-01-07
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("device_water_record")
public class DeviceWaterRecord implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 水机id
     */
    private Integer deviceId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 水卡id
     */
    private Integer cardId;

    /**
     * 支付金额
     */
    private BigDecimal payPrice;

    /**
     * 使用的水量
     */
    private BigDecimal useVolume;

    /**
     * 添加时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

}
